/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tpe.yana.testp1;

import java.util.Stack;

/**
 *
 * @author yana
 */
public class TerminalView implements View {

    private Model model;
    private boolean printInternal;

    public TerminalView(Model model, boolean printInternal) {
        this.model = model;
        this.printInternal = printInternal;
    }

    @Override
    public void printStart() {
        System.out.println("A: " + model.getA());
        System.out.println("B: " + model.getB());
        System.out.println("C: " + model.getC());
        System.out.println();
    }

    @Override
    public void printInternal() {
        printStart();
    }

    @Override
    public void printResult(int quantity) {
        printStart();
        System.out.println("Amount of steps: " + quantity);
    }

    public Model getModel() {
        return model;
    }

    public boolean isPrintInternal() {
        return printInternal;
    }

}
